/*
 * @Descripttion: 
 * @version: 
 * @Author: LLP
 * @Date: 2019-12-11 21:26:36
 * @LastEditors: LLP
 * @LastEditTime: 2019-12-15 16:00:35
 */
import request from '@/filter/request'
/**
 * @Author   LLP
 * @DateTime 2019-12-11T16:44:20+0800
 * 用户注册
 * ----------------------------------
 * @param    {[type]}
 * @return   {[type]}
 */
export function userRegister(data) {
	return request({
		url: '/v1/user/register',
		method: 'post',
		data
	})
}
/**
 * @Author   LLP
 * @DateTime 2019-12-11T16:53:22+0800
 * 注册验证码-phone
 * ----------------------------------
 * @param    {[type]}
 * @return   {[type]}
 */
export function verCode(data) {
	return request({
		url: '/phone/getcode',
		method: 'post',
		data
	})
}
/**
 * @name: 注册验证码-email
 * -----------------------
 * @test: test font
 * @msg: 
 * @param {type} 
 * @return: 
 */
export function emailCode(data) {
	return request({
		url: '/email/getcode',
		method: 'post',
		data
	})
}
/**
 * [userLogin description]
 * 用户登入
 * ---------------------------------
 * @Author   LLP
 * @DateTime 2019-12-12T15:47:32+0800
 * @param    {[type]}                 data [description]
 * @return   {[type]}                      [description]
 */
export function userLogin(data) {
	return request({
		url: '/v1/user/login',
		method: 'post',
		data
	})
}
/**
 * 修改密码
 * -------------------------
 * @param {*} data 
 */
export function forgetPassword(data) {
	return request({
		url: '/v1/user/forgetpassword',
		method: 'post',
		data
	})
}
/**
 * [getNickname description]
 * 获取用户名称
 * ------------------------
 * @Author   LLP
 * @DateTime 2019-12-25T16:38:24+0800
 * @param    {[type]}                 data [description]
 * @return   {[type]}                      [description]
 */
export function getNickname(data) {
	return request({
		url: '/get/nickname',
		method: 'post',
		data
	})
}
/**
 * [changeNickname description]
 * 修改名称
 * ------------------------
 * @Author   LLP
 * @DateTime 2019-12-25T16:49:37+0800
 * @param    {[type]}                 data [description]
 * @return   {[type]}                      [description]
 */
export function changeNickname(data) {
	return request({
		url: '/change/nickname',
		method: 'post',
		data
	})
}